import 'package:mobile_app.core/core/domain/entities/premium_access_status.dart';

abstract class IsCollectionListItemCreationPermitted {
  bool call({
    required PremiumAccessStatus premiumAccessStatus,
  });
}

class IsCollectionListItemCreationPermittedImpl implements IsCollectionListItemCreationPermitted {
  const IsCollectionListItemCreationPermittedImpl();

  @override
  bool call({
    required PremiumAccessStatus premiumAccessStatus,
  }) {
    return premiumAccessStatus.hasFullAccess || premiumAccessStatus.isDemo;
  }
}
